package com.yangzihao.entity;


import java.io.Serializable;

/*新闻分类的实体类*/
public class NewsCategory implements Serializable {

    private Integer id;   /*新闻分类编号*/
    private String name;  /*新闻分类名称*/

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "NewsCategory{" +
                "id=" + id +
                ", name='" + name + '\'' +
                '}';
    }
}
